(function(e) {
	function t(e) {
		if (e in u.style) return e;
		var t = ["Moz", "Webkit", "O", "ms"],
		n = e.charAt(0).toUpperCase() + e.substr(1);
		if (e in u.style) return e;
		for (e = 0; e < t.length; ++e) {
			var r = t[e] + n;
			if (r in u.style) return r
		}
	}
	function n(e) {
		"string" === typeof e && this.parse(e);
		return this
	}
	function r(t, n, r, i) {
		var s = [];
		e.each(t,
		function(t) {
			t = e.camelCase(t);
			t = e.transit.propertyMap[t] || e.cssProps[t] || t;
			t = t.replace(/([A-Z])/g,
			function(e) {
				return "-" + e.toLowerCase()
			}); - 1 === e.inArray(t, s) && s.push(t)
		});
		e.cssEase[r] && (r = e.cssEase[r]);
		var u = "" + o(n) + " " + r;
		0 < parseInt(i, 10) && (u += " " + o(i));
		var a = [];
		e.each(s,
		function(e, t) {
			a.push(t + " " + u)
		});
		return a.join(", ")
	}
	function i(t, n) {
		n || (e.cssNumber[t] = !0);
		e.transit.propertyMap[t] = a.transform;
		e.cssHooks[t] = {
			get: function(n) {
				return e(n).css("transit:transform").get(t)
			},
			set: function(n, r) {
				var i = e(n).css("transit:transform");
				i.setFromString(t, r);
				e(n).css({
					"transit:transform": i
				})
			}
		}
	}
	function s(e, t) {
		return "string" === typeof e && !e.match(/^[\-0-9\.]+$/) ? e: "" + e + t
	}
	function o(t) {
		e.fx.speeds[t] && (t = e.fx.speeds[t]);
		return s(t, "ms")
	}
	e.transit = {
		version: "0.9.9",
		propertyMap: {
			marginLeft: "margin",
			marginRight: "margin",
			marginBottom: "margin",
			marginTop: "margin",
			paddingLeft: "padding",
			paddingRight: "padding",
			paddingBottom: "padding",
			paddingTop: "padding"
		},
		enabled: !0,
		useTransitionEnd: !1
	};
	var u = document.createElement("div"),
	a = {},
	f = -1 < navigator.userAgent.toLowerCase().indexOf("chrome");
	a.transition = t("transition");
	a.transitionDelay = t("transitionDelay");
	a.transform = t("transform");
	a.transformOrigin = t("transformOrigin");
	u.style[a.transform] = "";
	u.style[a.transform] = "rotateY(90deg)";
	a.transform3d = "" !== u.style[a.transform];
	var l = a.transitionEnd = {
		transition: "transitionEnd",
		MozTransition: "transitionend",
		OTransition: "oTransitionEnd",
		WebkitTransition: "webkitTransitionEnd",
		msTransition: "MSTransitionEnd"
	} [a.transition] || null,
	c;
	for (c in a) a.hasOwnProperty(c) && "undefined" === typeof e.support[c] && (e.support[c] = a[c]);
	u = null;
	e.cssEase = {
		_default: "ease",
		"in": "ease-in",
		out: "ease-out",
		"in-out": "ease-in-out",
		snap: "cubic-bezier(0,1,.5,1)",
		easeOutCubic: "cubic-bezier(.215,.61,.355,1)",
		easeInOutCubic: "cubic-bezier(.645,.045,.355,1)",
		easeInCirc: "cubic-bezier(.6,.04,.98,.335)",
		easeOutCirc: "cubic-bezier(.075,.82,.165,1)",
		easeInOutCirc: "cubic-bezier(.785,.135,.15,.86)",
		easeInExpo: "cubic-bezier(.95,.05,.795,.035)",
		easeOutExpo: "cubic-bezier(.19,1,.22,1)",
		easeInOutExpo: "cubic-bezier(1,0,0,1)",
		easeInQuad: "cubic-bezier(.55,.085,.68,.53)",
		easeOutQuad: "cubic-bezier(.25,.46,.45,.94)",
		easeInOutQuad: "cubic-bezier(.455,.03,.515,.955)",
		easeInQuart: "cubic-bezier(.895,.03,.685,.22)",
		easeOutQuart: "cubic-bezier(.165,.84,.44,1)",
		easeInOutQuart: "cubic-bezier(.77,0,.175,1)",
		easeInQuint: "cubic-bezier(.755,.05,.855,.06)",
		easeOutQuint: "cubic-bezier(.23,1,.32,1)",
		easeInOutQuint: "cubic-bezier(.86,0,.07,1)",
		easeInSine: "cubic-bezier(.47,0,.745,.715)",
		easeOutSine: "cubic-bezier(.39,.575,.565,1)",
		easeInOutSine: "cubic-bezier(.445,.05,.55,.95)",
		easeInBack: "cubic-bezier(.6,-.28,.735,.045)",
		easeOutBack: "cubic-bezier(.175, .885,.32,1.275)",
		easeInOutBack: "cubic-bezier(.68,-.55,.265,1.55)"
	};
	e.cssHooks["transit:transform"] = {
		get: function(t) {
			return e(t).data("transform") || new n
		},
		set: function(t, r) {
			var i = r;
			i instanceof n || (i = new n(i));
			t.style[a.transform] = "WebkitTransform" === a.transform && !f ? i.toString(!0) : i.toString();
			e(t).data("transform", i)
		}
	};
	e.cssHooks.transform = {
		set: e.cssHooks["transit:transform"].set
	};
	"1.8" > e.fn.jquery && (e.cssHooks.transformOrigin = {
		get: function(e) {
			return e.style[a.transformOrigin]
		},
		set: function(e, t) {
			e.style[a.transformOrigin] = t
		}
	},
	e.cssHooks.transition = {
		get: function(e) {
			return e.style[a.transition]
		},
		set: function(e, t) {
			e.style[a.transition] = t
		}
	});
	i("scale");
	i("translate");
	i("rotate");
	i("rotateX");
	i("rotateY");
	i("rotate3d");
	i("perspective");
	i("skewX");
	i("skewY");
	i("x", !0);
	i("y", !0);
	n.prototype = {
		setFromString: function(e, t) {
			var r = "string" === typeof t ? t.split(",") : t.constructor === Array ? t: [t];
			r.unshift(e);
			n.prototype.set.apply(this, r)
		},
		set: function(e) {
			var t = Array.prototype.slice.apply(arguments, [1]);
			this.setter[e] ? this.setter[e].apply(this, t) : this[e] = t.join(",")
		},
		get: function(e) {
			return this.getter[e] ? this.getter[e].apply(this) : this[e] || 0
		},
		setter: {
			rotate: function(e) {
				this.rotate = s(e, "deg")
			},
			rotateX: function(e) {
				this.rotateX = s(e, "deg")
			},
			rotateY: function(e) {
				this.rotateY = s(e, "deg")
			},
			scale: function(e, t) {
				void 0 === t && (t = e);
				this.scale = e + "," + t
			},
			skewX: function(e) {
				this.skewX = s(e, "deg")
			},
			skewY: function(e) {
				this.skewY = s(e, "deg")
			},
			perspective: function(e) {
				this.perspective = s(e, "px")
			},
			x: function(e) {
				this.set("translate", e, null)
			},
			y: function(e) {
				this.set("translate", null, e)
			},
			translate: function(e, t) {
				void 0 === this._translateX && (this._translateX = 0);
				void 0 === this._translateY && (this._translateY = 0);
				null !== e && void 0 !== e && (this._translateX = s(e, "px"));
				null !== t && void 0 !== t && (this._translateY = s(t, "px"));
				this.translate = this._translateX + "," + this._translateY
			}
		},
		getter: {
			x: function() {
				return this._translateX || 0
			},
			y: function() {
				return this._translateY || 0
			},
			scale: function() {
				var e = (this.scale || "1,1").split(",");
				e[0] && (e[0] = parseFloat(e[0]));
				e[1] && (e[1] = parseFloat(e[1]));
				return e[0] === e[1] ? e[0] : e
			},
			rotate3d: function() {
				for (var e = (this.rotate3d || "0,0,0,0deg").split(","), t = 0; 3 >= t; ++t) e[t] && (e[t] = parseFloat(e[t]));
				e[3] && (e[3] = s(e[3], "deg"));
				return e
			}
		},
		parse: function(e) {
			var t = this;
			e.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,
			function(e, n, r) {
				t.setFromString(n, r)
			})
		},
		toString: function(e) {
			var t = [],
			n;
			for (n in this) if (this.hasOwnProperty(n) && (a.transform3d || !("rotateX" === n || "rotateY" === n || "perspective" === n || "transformOrigin" === n)))"_" !== n[0] && (e && "scale" === n ? t.push(n + "3d(" + this[n] + ",1)") : e && "translate" === n ? t.push(n + "3d(" + this[n] + ",0)") : t.push(n + "(" + this[n] + ")"));
			return t.join(" ")
		}
	};
	e.fn.transition = e.fn.transit = function(t, n, i, s) {
		var u = this,
		f = 0,
		c = !0;
		"function" === typeof n && (s = n, n = void 0);
		"function" === typeof i && (s = i, i = void 0);
		"undefined" !== typeof t.easing && (i = t.easing, delete t.easing);
		"undefined" !== typeof t.duration && (n = t.duration, delete t.duration);
		"undefined" !== typeof t.complete && (s = t.complete, delete t.complete);
		"undefined" !== typeof t.queue && (c = t.queue, delete t.queue);
		"undefined" !== typeof t.delay && (f = t.delay, delete t.delay);
		"undefined" === typeof n && (n = e.fx.speeds._default);
		"undefined" === typeof i && (i = e.cssEase._default);
		n = o(n);
		var h = r(t, n, i, f),
		v = e.transit.enabled && a.transition ? parseInt(n, 10) + parseInt(f, 10) : 0;
		if (0 === v) return n = c,
		i = function(e) {
			u.css(t);
			s && s.apply(u);
			e && e()
		},
		!0 === n ? u.queue(i) : n ? u.queue(n, i) : i(),
		u;
		var m = {};
		n = c;
		i = function(n) {
			var r = 0;
			"MozTransition" === a.transition && 25 > r && (r = 25);
			window.setTimeout(function() {
				var r = !1,
				i = function() {
					r && u.unbind(l, i);
					0 < v && u.each(function() {
						this.style[a.transition] = m[this] || null
					});
					"function" === typeof s && s.apply(u);
					"function" === typeof n && n()
				};
				0 < v && l && e.transit.useTransitionEnd ? (r = !0, u.bind(l, i)) : window.setTimeout(i, v);
				u.each(function() {
					0 < v && (this.style[a.transition] = h);
					e(this).css(t)
				})
			},
			r)
		}; ! 0 === n ? u.queue(i) : n ? u.queue(n, i) : i();
		return this
	};
	e.transit.getTransitionValue = r
})(jQuery); (function(e, t) {
	jQuery.easing["jswing"] = jQuery.easing["swing"];
	jQuery.extend(jQuery.easing, {
		def: "easeOutQuad",
		swing: function(e, t, n, r, i) {
			return jQuery.easing[jQuery.easing.def](e, t, n, r, i)
		},
		easeInQuad: function(e, t, n, r, i) {
			return r * (t /= i) * t + n
		},
		easeOutQuad: function(e, t, n, r, i) {
			return - r * (t /= i) * (t - 2) + n
		},
		easeInOutQuad: function(e, t, n, r, i) {
			if ((t /= i / 2) < 1) return r / 2 * t * t + n;
			return - r / 2 * (--t * (t - 2) - 1) + n
		},
		easeInCubic: function(e, t, n, r, i) {
			return r * (t /= i) * t * t + n
		},
		easeOutCubic: function(e, t, n, r, i) {
			return r * ((t = t / i - 1) * t * t + 1) + n
		},
		easeInOutCubic: function(e, t, n, r, i) {
			if ((t /= i / 2) < 1) return r / 2 * t * t * t + n;
			return r / 2 * ((t -= 2) * t * t + 2) + n
		},
		easeInQuart: function(e, t, n, r, i) {
			return r * (t /= i) * t * t * t + n
		},
		easeOutQuart: function(e, t, n, r, i) {
			return - r * ((t = t / i - 1) * t * t * t - 1) + n
		},
		easeInOutQuart: function(e, t, n, r, i) {
			if ((t /= i / 2) < 1) return r / 2 * t * t * t * t + n;
			return - r / 2 * ((t -= 2) * t * t * t - 2) + n
		},
		easeInQuint: function(e, t, n, r, i) {
			return r * (t /= i) * t * t * t * t + n
		},
		easeOutQuint: function(e, t, n, r, i) {
			return r * ((t = t / i - 1) * t * t * t * t + 1) + n
		},
		easeInOutQuint: function(e, t, n, r, i) {
			if ((t /= i / 2) < 1) return r / 2 * t * t * t * t * t + n;
			return r / 2 * ((t -= 2) * t * t * t * t + 2) + n
		},
		easeInSine: function(e, t, n, r, i) {
			return - r * Math.cos(t / i * (Math.PI / 2)) + r + n
		},
		easeOutSine: function(e, t, n, r, i) {
			return r * Math.sin(t / i * (Math.PI / 2)) + n
		},
		easeInOutSine: function(e, t, n, r, i) {
			return - r / 2 * (Math.cos(Math.PI * t / i) - 1) + n
		},
		easeInExpo: function(e, t, n, r, i) {
			return t == 0 ? n: r * Math.pow(2, 10 * (t / i - 1)) + n
		},
		easeOutExpo: function(e, t, n, r, i) {
			return t == i ? n + r: r * ( - Math.pow(2, -10 * t / i) + 1) + n
		},
		easeInOutExpo: function(e, t, n, r, i) {
			if (t == 0) return n;
			if (t == i) return n + r;
			if ((t /= i / 2) < 1) return r / 2 * Math.pow(2, 10 * (t - 1)) + n;
			return r / 2 * ( - Math.pow(2, -10 * --t) + 2) + n
		},
		easeInCirc: function(e, t, n, r, i) {
			return - r * (Math.sqrt(1 - (t /= i) * t) - 1) + n
		},
		easeOutCirc: function(e, t, n, r, i) {
			return r * Math.sqrt(1 - (t = t / i - 1) * t) + n
		},
		easeInOutCirc: function(e, t, n, r, i) {
			if ((t /= i / 2) < 1) return - r / 2 * (Math.sqrt(1 - t * t) - 1) + n;
			return r / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + n
		},
		easeInElastic: function(e, t, n, r, i) {
			var s = 1.70158;
			var o = 0;
			var u = r;
			if (t == 0) return n;
			if ((t /= i) == 1) return n + r;
			if (!o) o = i * .3;
			if (u < Math.abs(r)) {
				u = r;
				var s = o / 4
			} else var s = o / (2 * Math.PI) * Math.asin(r / u);
			return - (u * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * i - s) * 2 * Math.PI / o)) + n
		},
		easeOutElastic: function(e, t, n, r, i) {
			var s = 1.70158;
			var o = 0;
			var u = r;
			if (t == 0) return n;
			if ((t /= i) == 1) return n + r;
			if (!o) o = i * .3;
			if (u < Math.abs(r)) {
				u = r;
				var s = o / 4
			} else var s = o / (2 * Math.PI) * Math.asin(r / u);
			return u * Math.pow(2, -10 * t) * Math.sin((t * i - s) * 2 * Math.PI / o) + r + n
		},
		easeInOutElastic: function(e, t, n, r, i) {
			var s = 1.70158;
			var o = 0;
			var u = r;
			if (t == 0) return n;
			if ((t /= i / 2) == 2) return n + r;
			if (!o) o = i * .3 * 1.5;
			if (u < Math.abs(r)) {
				u = r;
				var s = o / 4
			} else var s = o / (2 * Math.PI) * Math.asin(r / u);
			if (t < 1) return - .5 * u * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * i - s) * 2 * Math.PI / o) + n;
			return u * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * i - s) * 2 * Math.PI / o) * .5 + r + n
		},
		easeInBack: function(e, t, n, r, i, s) {
			if (s == undefined) s = 1.70158;
			return r * (t /= i) * t * ((s + 1) * t - s) + n
		},
		easeOutBack: function(e, t, n, r, i, s) {
			if (s == undefined) s = 1.70158;
			return r * ((t = t / i - 1) * t * ((s + 1) * t + s) + 1) + n
		},
		easeInOutBack: function(e, t, n, r, i, s) {
			if (s == undefined) s = 1.70158;
			if ((t /= i / 2) < 1) return r / 2 * t * t * (((s *= 1.525) + 1) * t - s) + n;
			return r / 2 * ((t -= 2) * t * (((s *= 1.525) + 1) * t + s) + 2) + n
		},
		easeInBounce: function(e, t, n, r, i) {
			return r - jQuery.easing.easeOutBounce(e, i - t, 0, r, i) + n
		},
		easeOutBounce: function(e, t, n, r, i) {
			if ((t /= i) < 1 / 2.75) {
				return r * 7.5625 * t * t + n
			} else if (t < 2 / 2.75) {
				return r * (7.5625 * (t -= 1.5 / 2.75) * t + .75) + n
			} else if (t < 2.5 / 2.75) {
				return r * (7.5625 * (t -= 2.25 / 2.75) * t + .9375) + n
			} else {
				return r * (7.5625 * (t -= 2.625 / 2.75) * t + .984375) + n
			}
		},
		easeInOutBounce: function(e, t, n, r, i) {
			if (t < i / 2) return jQuery.easing.easeInBounce(e, t * 2, 0, r, i) * .5 + n;
			return jQuery.easing.easeOutBounce(e, t * 2 - i, 0, r, i) * .5 + r * .5 + n
		}
	});
	e.waitForImages = {
		hasImageProperties: ["backgroundImage", "listStyleImage", "borderImage", "borderCornerImage"]
	};
	e.expr[":"].uncached = function(t) {
		var n = document.createElement("img");
		n.src = t.src;
		return e(t).is('img[src!=""]') && !n.complete
	};
	e.fn.waitForImages = function(t, n, r) {
		if (e.isPlainObject(arguments[0])) {
			n = t.each;
			r = t.waitForAll;
			t = t.finished
		}
		t = t || e.noop;
		n = n || e.noop;
		r = !!r;
		if (!e.isFunction(t) || !e.isFunction(n)) {
			throw new TypeError("An invalid callback was supplied.")
		}
		return this.each(function() {
			var i = e(this),
			s = [];
			if (r) {
				var o = e.waitForImages.hasImageProperties || [],
				u = /url\((['"]?)(.*?)\1\)/g;
				i.find("*").each(function() {
					var t = e(this);
					if (t.is("img:uncached")) {
						s.push({
							src: t.attr("src"),
							element: t[0]
						})
					}
					e.each(o,
					function(e, n) {
						var r = t.css(n);
						if (!r) {
							return true
						}
						var i;
						while (i = u.exec(r)) {
							s.push({
								src: i[2],
								element: t[0]
							})
						}
					})
				})
			} else {
				i.find("img:uncached").each(function() {
					s.push({
						src: this.src,
						element: this
					})
				})
			}
			var f = s.length,
			l = 0;
			if (f == 0) {
				t.call(i[0])
			}
			e.each(s,
			function(r, s) {
				var o = new Image;
				e(o).bind("load error",
				function(e) {
					l++;
					n.call(s.element, l, f, e.type == "load");
					if (l == f) {
						t.call(i[0]);
						return false
					}
				});
				o.src = s.src
			})
		})
	};
	e.fn.swipe = function(t) {
		if (!this) return false;
		var n = {
			fingers: 1,
			threshold: 75,
			swipe: null,
			swipeLeft: null,
			swipeRight: null,
			swipeUp: null,
			swipeDown: null,
			swipeStatus: null,
			click: null,
			triggerOnTouchEnd: true,
			allowPageScroll: "auto"
		};
		var r = "left";
		var i = "right";
		var s = "up";
		var o = "down";
		var u = "none";
		var f = "horizontal";
		var l = "vertical";
		var c = "auto";
		var h = "start";
		var p = "move";
		var d = "end";
		var v = "cancel";
		var m = "ontouchstart" in window,
		g = m ? "touchstart": "mousedown",
		y = m ? "touchmove": "mousemove",
		b = m ? "touchend": "mouseup",
		w = "touchcancel";
		var E = "start";
		if (t.allowPageScroll == undefined && (t.swipe != undefined || t.swipeStatus != undefined)) t.allowPageScroll = u;
		if (t) e.extend(n, t);
		return this.each(function() {
			function t() {
				var e = S();
				if (e <= 45 && e >= 0) return r;
				else if (e <= 360 && e >= 315) return r;
				else if (e >= 135 && e <= 225) return i;
				else if (e > 45 && e < 135) return o;
				else return s
			}
			function S() {
				var e = H.x - B.x;
				var t = B.y - H.y;
				var n = Math.atan2(t, e);
				var r = Math.round(n * 180 / Math.PI);
				if (r < 0) r = 360 - Math.abs(r);
				return r
			}
			function x() {
				return Math.round(Math.sqrt(Math.pow(B.x - H.x, 2) + Math.pow(B.y - H.y, 2)))
			}
			function T(e, t) {
				if (n.allowPageScroll == u) {
					e.preventDefault()
				} else {
					var a = n.allowPageScroll == c;
					switch (t) {
					case r:
						if (n.swipeLeft && a || !a && n.allowPageScroll != f) e.preventDefault();
						break;
					case i:
						if (n.swipeRight && a || !a && n.allowPageScroll != f) e.preventDefault();
						break;
					case s:
						if (n.swipeUp && a || !a && n.allowPageScroll != l) e.preventDefault();
						break;
					case o:
						if (n.swipeDown && a || !a && n.allowPageScroll != l) e.preventDefault();
						break
					}
				}
			}
			function N(e, t) {
				if (n.swipeStatus) n.swipeStatus.call(_, e, t, direction || null, distance || 0);
				if (t == v) {
					if (n.click && (P == 1 || !m) && (isNaN(distance) || distance == 0)) n.click.call(_, e, e.target)
				}
				if (t == d) {
					if (n.swipe) {
						n.swipe.call(_, e, direction, distance)
					}
					switch (direction) {
					case r:
						if (n.swipeLeft) n.swipeLeft.call(_, e, direction, distance);
						break;
					case i:
						if (n.swipeRight) n.swipeRight.call(_, e, direction, distance);
						break;
					case s:
						if (n.swipeUp) n.swipeUp.call(_, e, direction, distance);
						break;
					case o:
						if (n.swipeDown) n.swipeDown.call(_, e, direction, distance);
						break
					}
				}
			}
			function C(e) {
				P = 0;
				H.x = 0;
				H.y = 0;
				B.x = 0;
				B.y = 0;
				F.x = 0;
				F.y = 0
			}
			function L(e) {
				e.preventDefault();
				distance = x();
				direction = t();
				if (n.triggerOnTouchEnd) {
					E = d;
					if ((P == n.fingers || !m) && B.x != 0) {
						if (distance >= n.threshold) {
							N(e, E);
							C(e)
						} else {
							E = v;
							N(e, E);
							C(e)
						}
					} else {
						E = v;
						N(e, E);
						C(e)
					}
				} else if (E == p) {
					E = v;
					N(e, E);
					C(e)
				}
				M.removeEventListener(y, A, false);
				M.removeEventListener(b, L, false)
			}
			function A(e) {
				if (E == d || E == v) return;
				var r = m ? e.touches[0] : e;
				B.x = r.pageX;
				B.y = r.pageY;
				direction = t();
				if (m) {
					P = e.touches.length
				}
				E = p;
				T(e, direction);
				if (P == n.fingers || !m) {
					distance = x();
					if (n.swipeStatus) N(e, E, direction, distance);
					if (!n.triggerOnTouchEnd) {
						if (distance >= n.threshold) {
							E = d;
							N(e, E);
							C(e)
						}
					}
				} else {
					E = v;
					N(e, E);
					C(e)
				}
			}
			function O(e) {
				var t = m ? e.touches[0] : e;
				E = h;
				if (m) {
					P = e.touches.length
				}
				distance = 0;
				direction = null;
				if (P == n.fingers || !m) {
					H.x = B.x = t.pageX;
					H.y = B.y = t.pageY;
					if (n.swipeStatus) N(e, E)
				} else {
					C(e)
				}
				M.addEventListener(y, A, false);
				M.addEventListener(b, L, false)
			}
			var M = this;
			var _ = e(this);
			var D = null;
			var P = 0;
			var H = {
				x: 0,
				y: 0
			};
			var B = {
				x: 0,
				y: 0
			};
			var F = {
				x: 0,
				y: 0
			};
			try {
				this.addEventListener(g, O, false);
				this.addEventListener(w, C)
			} catch(I) {}
		})
	}
})(jQuery)

// HOMEPAGE SLIDER //
var api;
jQuery(document).ready(function() {
	//判断pc端手机端
	 revolutionFun("fullwidthbanner","on");
	 revolutionFunMobile(0);
	function revolutionFunMobile(width){
		 
		if($("#mobile_banner_content").length>0){
			var sHei;
			try{
				var t = typeof window.parent.getFrameWidth;
			}catch(e){
				var t = '';
			}
			if( t === 'function' ){
				var nowwidth = window.parent.getFrameWidth();
				if(nowwidth<=900 && nowwidth!=width && $("#mobile_banner_content").attr("data-flag")!=1){
					revolutionFun("fullwidthbanner2","off", 335, 640);
					$("#mobile_banner_content").attr("data-flag",1);
					sHei = $('.fullwidthbanner2 img').height() || ($('.fullwidthbanner2 img').width() * .75);
					$('.fullwidthbanner2').css('height',sHei);
				}
				setTimeout(function(){ revolutionFunMobile(nowwidth);},100);
			}else{
				var t = $('#mobile_banner_content').attr('data-type');
				if(t == 1){
					//手机
					(function(){$('#mz-slider').flexslider({
		                animation: "slide",
		                direction:"horizontal",
		                easing:"swing",
		                slideshow: true, 
		                directionNav: false,
		                slideshowSpeed: 3000
		            })})();
				}else{
					revolutionFun("fullwidthbanner2","off");
					sHei = $('.fullwidthbanner2 img').height() || ($('.fullwidthbanner2 img').width() * .75);
					$('.fullwidthbanner2').css('height',sHei);
				}
				
			}
		}
	}
	
	
	 function revolutionFun(apiFull,touchenabledFlag, height, width){

		var load_img_fun=function(width,height){
			/*兼容移动端尺寸*/
			var height = height || h;
			var width  = width || w;

			 api = jQuery('.'+apiFull).revolution({
				delay: 5000,
				startheight: height,
				startwidth: width,

				hideThumbs: 200,

				thumbWidth: 100,
				// Thumb With and Height and Amount (only if navigation Tyope set to thumb !)
				thumbHeight: 50,
				thumbAmount: 5,

				navigationType: "bullet",
				//bullet, thumb, none, both		(No Thumbs In FullWidth Version !)
				navigationArrows: "verticalcentered",
				//nexttobullets, verticalcentered, none
				navigationStyle: "round",
				//round,square,navbar
				touchenabled: touchenabledFlag,
				// Enable Swipe Function : on/off
				onHoverStop: "on",
				// Stop Banner Timet at Hover on Slide on/off
				navOffsetHorizontal: 0,
				navOffsetVertical: 0,

				stopAtSlide: -1,
				stopAfterLoops: -1,

				shadow: 0,
				//0 = no Shadow, 1,2,3 = 3 Different Art of Shadows  (No Shadow in Fullwidth Version !)
				fullWidth: "on" // Turns On or Off the Fullwidth Image Centering in FullWidth Modus
			});
		}
		if($('input[name=isBig]').val() == 1){
			/*不限制高度，宽度*/
			var imgSrc = $('#pc_banner_content').find('img').eq(0).attr('src');
			var img = new Image();
			img.src = imgSrc; // 如果图片被缓存，则直接返回缓存数据
			if(img.complete){
				var w = img.width;
				var h = img.height;
				load_img_fun(w,h);
			}else{
				img.onload = function(){
					var w = img.width;
					var h = img.height;
					load_img_fun(w,h);
					try{
						resizeWin();
					}
					catch(e){}
				}
			}
		}else{
			/*PC端默认尺寸*/
			var w = 1920;
			var h = 600;
			load_img_fun();
		}
	}
});
 function getImageWidth(url){
	var img = new Image();
	img.src = url; // 如果图片被缓存，则直接返回缓存数据
	if(img.complete){
		return {'width':img.width, 'height':img.height};
	}else{
	// 完全加载完毕的事件
		img.onload = function(){
			return {'width':img.width, 'height':img.height};
		}
	}
}
